package com.yswy.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.yswy.domain.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("app 用户")
@TableName(value = "app_user")
public class AppUser extends BasePojo<AppUser> {

    @ApiModelProperty("session_key 会话密钥")
    private String sessionKey ;
    @ApiModelProperty("授权用户唯一标识")
    private String openid ;
    @ApiModelProperty("设备Id")
    private String deviceId;
    @ApiModelProperty("上级Id")
    private Long upUserId;
    @ApiModelProperty("用户 token")
    private String authToken ;
    @ApiModelProperty("用户 头像")
    private String headImg ;
    @ApiModelProperty("用户 昵称")
    private String nickName ;
    @ApiModelProperty("性别")
    private Integer sex;
    @ApiModelProperty("用户手机")
    private String userPhone;
    @ApiModelProperty("是否是白名单用户 0 不是  1 是")
    private Integer isWhiteUser = 0 ;
    @ApiModelProperty("标签")
    private String tags ;
    @ApiModelProperty("邀请码")
    private String invatecode;
    @ApiModelProperty("渠道")
    private String channel;
    @ApiModelProperty("渠道ID")
    private Long packageManageId ;
    @ApiModelProperty("注册ip")
    private String createIp;
    @ApiModelProperty("会员过期时间")
    private Date memberExpirationTime;
    @TableField(exist = false)
    private Boolean isMember ;
}
